
package com.fire.web.modules.all.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.fire.web.modules.all.mapper.TMitStaticsSiteMapper;
import com.fire.web.modules.all.entity.TMitStaticsSiteModel;
import com.fire.web.modules.all.service.ITMitStaticsSiteService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * 站点统计记录Service
 *
 * @author raoyuxing
 * @Date 2019-02-21 15:52
 */
@Service
public class TMitStaticsSiteServiceImpl extends ServiceImpl<TMitStaticsSiteMapper, TMitStaticsSiteModel> implements ITMitStaticsSiteService{

    private static final Logger LOGGER = LoggerFactory.getLogger(TMitStaticsSiteServiceImpl.class);

    @Autowired
    private TMitStaticsSiteMapper tMitStaticsSiteMapper;

    @Override
    public TMitStaticsSiteModel selectOne(TMitStaticsSiteModel entity){
        return tMitStaticsSiteMapper.selectOne(entity);
    }

    @Override
    public List<TMitStaticsSiteModel>selectList(TMitStaticsSiteModel model){
        return tMitStaticsSiteMapper.selectListByModel(model);
    }

    @Override
    public Page<TMitStaticsSiteModel> selectPage(int currentPage, int pageSize, Wrapper<TMitStaticsSiteModel> wrapper){
        return selectPage(new Page<TMitStaticsSiteModel>(currentPage,pageSize), wrapper);
    }

    @Override
    public Page<Map<String, Object>> selectMapsPage(int currentPage, int pageSize, Wrapper<TMitStaticsSiteModel> wrapper){
        return selectMapsPage(new Page<TMitStaticsSiteModel>(currentPage,pageSize), wrapper);
    }

}
